/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frmodule_stub.h                                    */
/*  NOTE      = 模块stub                                           */
/*  DATE      = 2014/10/29                                         */
/*******************************************************************/

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>

#include "frcomm.h"
#include "frmem.h"
#include "frstr.h"
#include "conntrack.h"
#include "module.h"

FR_STATIC int __stub_l7_detect(Conntrack *p_st_conn, Apm_packet *p_st_packet)
{
    frdbg("__stub_l7_detect run\n");
    return APM_L7_IS_NO;
}

FR_STATIC int __stub_l7_analysis(Conntrack *p_st_conn
                               , Apm_packet *p_st_packet
                               , Frhash_header  *p_st_hash_report   //保存Frreport_data
                              )
{
    frdbg("__stub_l7_analysis run\n");
    return 0;
}

FR_STATIC int __stub_l7_session_destory(void *p_session_private)
{
    frdbg("__stub_l7_session_destory run\n");
    return 0;
}

/*******************************************************************************
*  FUNC     :  设置为stub
*  ARGS     :  
*  RTN      :  
*  NOTE     :  
*******************************************************************************/
void frl7module_stub( L7_module *p_st_l7_module )
{
    if(p_st_l7_module == NULL)
        return;

    p_st_l7_module->p_module_filenm = NULL;
    p_st_l7_module->p_so_filenm = NULL;
    p_st_l7_module->p_so_handle = NULL;
    //p_st_l7_module->p_module_name = NULL;
    p_st_l7_module->p_version = NULL;
    
    p_st_l7_module->l7_detect = __stub_l7_detect;
    p_st_l7_module->l7_analysis = __stub_l7_analysis;
    p_st_l7_module->session_destory = __stub_l7_session_destory;

    return;
}
